package com.zgh.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.zgh.domain.Result;
import com.zgh.service.BbsCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/bbsComment")
public class BbsCommentController {
    @Autowired
    private BbsCommentService bbsCommentService;

    @RequestMapping(value = "/thumb/{id}/{count}",method = RequestMethod.GET)
    public Result thumb(@PathVariable String id,@PathVariable String count) {
       // System.out.println(id+count);
        bbsCommentService.thumb(id,count);
        return new Result(true,"点赞成功",null);
    }
}
